import Page from "@/components/Page";
import { defineComponent } from "vue";
import style from "./index.module.less";
export default defineComponent({
  props: {
    title: {
      type: String,
      default: "",
    },
    urlImg: {
      type: String,
      default: "",
    },
  },
  setup(props, { slots }) {
    return () => (
      <div class={[style["normals"]]}>
        {slots.img ? (
          slots.img()
        ) : (
          <img class={[style["img-box"]]} src={props.urlImg} />
        )}
        <div class={["font--t2 wt ml-6"]}>{props.title}</div>
      </div>
    );
  },
});
